// 主界面
;
define(function(require, exports, module) {
	'use strict';
	var util = require("util");
	var base = require("base");
	var router = require("../hash/pageRouter");
	var dialog = require("dialog");
	var databind = require("databind");
	var css_phaseInventoryList = require("./phaseRecordList.css");
	var tools = require("tools");
	var pageIndex = 1,
		pageSize = 10,
		totalPageCount = 1,
		totalRecordCount = 0; //分页初始化
	var financeId = "";
	var init = function(page) {
		financeId = page.params.financeId;
		router.init();
		tools.loadList("inquiryInterestSettlement.json", $("#phaseRecordListTable"), $("#phaseRecordListTpl"), {
			financeId: financeId
		}, function() {
			$(".detail").unbind("click").click(function(){
				router.route("financing/phaseRecordDetail.html?quarterSettlementId=" + $(this).parents("tr").attr("quarterSettlementId"));
			});
		});

		initEvent();
	};

	var initEvent = function() {

	};

	//			//查询融资货箱列表
	//			var inquireBulkstockInventoryPageList = function(financeId) {
	//				base.fnAjax({
	//					action: "inquireFinanceSupervisionNotice.json",
	//					oData: {
	//						financeId: financeId
	//					}, //传递参数
	//					fnSuccess: function(data) {
	//						if (data.status == 200) {
	//							databind.fillForm(".supervisionInformContent", dataFinancingDetail.datas[0]);
	//							if (data.datas.length > 0 && data.datas[0].supervisionNoticeId != 0) {}
	//
	//						} else {
	//							base.alert(2, "信息获取失败");
	//						}
	//					}
	//				});
	//
	//			};

	return {
		init: init
	}
});